package Chapter6.one_to_one;

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class AuthorAddress implements Serializable {
	private static final long serialVersionUID = 1L;
	private String name;
	private String address;

	public AuthorAddress() {
	}

	public AuthorAddress(String name, String address) {
		this.name = name;
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
